package cn.jiyun.service.impl;

import cn.jiyun.entity.XmDistributionPay;
import cn.jiyun.mapper.XmDistributionPayMapper;
import cn.jiyun.service.IXmDistributionPayService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-25
 */
@Service
public class XmDistributionPayServiceImpl extends ServiceImpl<XmDistributionPayMapper, XmDistributionPay> implements IXmDistributionPayService {

    @Override
    public List<XmDistributionPay> findList(XmDistributionPay xmDistributionPay) {
        LambdaQueryWrapper<XmDistributionPay> qr = new LambdaQueryWrapper<>();
        qr.like(xmDistributionPay.getApplyy()!=null,XmDistributionPay::getApplyy,xmDistributionPay.getApplyy());
        qr.eq(xmDistributionPay.getStatus()!=null,XmDistributionPay::getStatus,xmDistributionPay.getStatus());
        List<XmDistributionPay> selectedList = baseMapper.selectList(qr);
        return selectedList;
    }
}
